package com.syj.jsxjj.ui.renzheng.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by xiejingwen on 2017/7/13 0013.
 */

public class ContactBean implements Parcelable {
    private String relation;
    private String name;
    private String phone;

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.relation);
        dest.writeString(this.name);
        dest.writeString(this.phone);
    }

    public ContactBean() {
    }

    protected ContactBean(Parcel in) {
        this.relation = in.readString();
        this.name = in.readString();
        this.phone = in.readString();
    }

    public static final Creator<ContactBean> CREATOR = new Creator<ContactBean>() {
        @Override
        public ContactBean createFromParcel(Parcel source) {
            return new ContactBean(source);
        }

        @Override
        public ContactBean[] newArray(int size) {
            return new ContactBean[size];
        }
    };

    @Override
    public String toString() {
        return "ContactBean{" +
                "relation='" + relation + '\'' +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}
